home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 75 6e 69 2d 73 |Path: ne|ws.uni-s|
|00000010| 74 75 74 74 67 61 72 74 | 2e 64 65 21 6e 65 77 73 |tuttgart|.de!news|
|00000020| 0a 46 72 6f 6d 3a 20 41 | 6e 64 72 65 61 73 20 57 |.From: A|ndreas W|
|00000030| 69 65 72 73 65 20 3c 77 | 69 65 72 73 65 40 72 75 |ierse <w|ierse@ru|
|00000040| 73 2e 75 6e 69 2d 73 74 | 75 74 74 67 61 72 74 2e |s.uni-st|uttgart.|
|00000050| 64 65 3e 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |de>.News|groups: |
|00000060| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 2c 63 6f |comp.lan|g.c++,co|
|00000070| 6d 70 2e 73 79 73 2e 73 | 67 69 2e 6d 69 73 63 0a |mp.sys.s|gi.misc.|
|00000080| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 57 68 61 |Subject:| Re: Wha|
|00000090| 74 20 69 73 20 74 68 65 | 20 62 65 73 74 20 77 61 |t is the| best wa|
|000000a0| 79 20 74 6f 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |y to ini|tialize |
|000000b0| 73 74 61 74 69 63 20 74 | 65 6d 70 6c 61 74 65 20 |static t|emplate |
|000000c0| 6d 65 6d 62 65 72 73 3f | 0a 44 61 74 65 3a 20 4d |members?|.Date: M|
|000000d0| 6f 6e 2c 20 30 34 20 4d | 61 72 20 31 39 39 36 20 |on, 04 M|ar 1996 |
|000000e0| 30 39 3a 33 32 3a 31 33 | 20 2b 30 31 30 30 0a 4f |09:32:13| +0100.O|
|000000f0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 56 69 73 |rganizat|ion: Vis|
|00000100| 75 61 6c 69 7a 61 74 69 | 6f 6e 20 61 74 20 43 6f |ualizati|on at Co|
|00000110| 6d 70 75 74 65 72 20 43 | 65 6e 74 65 72 20 55 6e |mputer C|enter Un|
|00000120| 69 76 65 72 73 69 74 79 | 20 6f 66 20 53 74 75 74 |iversity| of Stut|
|00000130| 74 67 61 72 74 0a 4d 65 | 73 73 61 67 65 2d 49 44 |tgart.Me|ssage-ID|
|00000140| 3a 20 3c 33 31 33 41 41 | 41 38 44 2e 34 31 43 36 |: <313AA|A8D.41C6|
|00000150| 40 72 75 73 2e 75 6e 69 | 2d 73 74 75 74 74 67 61 |@rus.uni|-stuttga|
|00000160| 72 74 2e 64 65 3e 0a 52 | 65 66 65 72 65 6e 63 65 |rt.de>.R|eference|
|00000170| 73 3a 20 3c 33 31 33 37 | 39 39 45 46 2e 34 31 43 |s: <3137|99EF.41C|
|00000180| 36 40 6d 6f 7a 61 72 74 | 2e 6e 6d 72 63 6f 72 65 |6@mozart|.nmrcore|
|00000190| 2e 75 61 62 2e 65 64 75 | 3e 0a 4e 4e 54 50 2d 50 |.uab.edu|>.NNTP-P|
|000001a0| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 61 77 73 |osting-H|ost: aws|
|000001b0| 74 61 72 2d 66 64 2e 72 | 75 73 2e 75 6e 69 2d 73 |tar-fd.r|us.uni-s|
|000001c0| 74 75 74 74 67 61 72 74 | 2e 64 65 0a 4d 69 6d 65 |tuttgart|.de.Mime|
|000001d0| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|000001e0| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|000001f0| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000200| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|00000210| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|00000220| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|00000230| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 20 28 |r: Mozil|la 2.0 (|
|00000240| 58 31 31 3b 20 49 3b 20 | 49 52 49 58 20 35 2e 33 |X11; I; |IRIX 5.3|
|00000250| 20 49 50 32 30 29 0a 54 | 6f 3a 20 48 75 6e 74 65 | IP20).T|o: Hunte|
|00000260| 72 20 4d 6f 73 65 6c 65 | 79 20 3c 68 75 6e 74 65 |r Mosele|y <hunte|
|00000270| 72 40 6d 6f 7a 61 72 74 | 2e 6e 6d 72 63 6f 72 65 |r@mozart|.nmrcore|
|00000280| 2e 75 61 62 2e 65 64 75 | 3e 0a 0a 48 75 6e 74 65 |.uab.edu|>..Hunte|
|00000290| 72 20 4d 6f 73 65 6c 65 | 79 20 77 72 6f 74 65 3a |r Mosele|y wrote:|
|000002a0| 0a 3e 20 0a 3e 20 57 68 | 61 74 20 69 73 20 74 68 |.> .> Wh|at is th|
|000002b0| 65 20 62 65 73 74 20 77 | 61 79 20 74 6f 20 69 6e |e best w|ay to in|
|000002c0| 69 74 69 61 6c 69 7a 65 | 20 73 74 61 74 69 63 20 |itialize| static |
|000002d0| 74 65 6d 70 6c 61 74 65 | 20 6d 65 6d 62 65 72 73 |template| members|
|000002e0| 3f 0a 3e 20 0a 3e 20 45 | 78 61 6d 70 6c 65 3a 0a |?.> .> E|xample:.|
|000002f0| 3e 20 0a 3e 20 74 65 6d | 70 6c 61 74 65 3c 63 6c |> .> tem|plate<cl|
|00000300| 61 73 73 20 54 3e 0a 3e | 20 63 6c 61 73 73 20 58 |ass T>.>| class X|
|00000310| 0a 3e 20 20 20 7b 0a 3e | 20 20 20 70 72 69 76 61 |.> {.>| priva|
|00000320| 74 65 20 3a 0a 3e 20 20 | 20 20 20 73 74 61 74 69 |te :.> | stati|
|00000330| 63 20 69 6e 74 20 6d 69 | 6e 5f 62 75 66 66 5f 73 |c int mi|n_buff_s|
|00000340| 69 7a 65 3b 0a 3e 20 20 | 20 2e 2e 2e 0a 3e 20 20 |ize;.> | ....> |
|00000350| 20 7d 3b 0a 3e 20 0a 3e | 20 57 68 61 74 20 69 73 | };.> .>| What is|
|00000360| 20 74 68 65 20 62 65 73 | 74 20 77 61 79 20 74 6f | the bes|t way to|
|00000370| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 6d 69 6e 5f | initial|ize min_|
|00000380| 62 75 66 66 5f 73 69 7a | 65 20 66 6f 72 20 61 20 |buff_siz|e for a |
|00000390| 67 69 76 65 6e 0a 3e 20 | 58 3c 54 3e 20 63 6c 61 |given.> |X<T> cla|
|000003a0| 73 73 3f 0a 0a 49 20 64 | 6f 6e 27 74 20 6b 6e 6f |ss?..I d|on't kno|
|000003b0| 77 20 77 68 61 74 27 73 | 20 74 68 65 20 62 65 73 |w what's| the bes|
|000003c0| 74 20 77 61 79 2c 20 62 | 75 74 20 49 20 6b 6e 6f |t way, b|ut I kno|
|000003d0| 77 20 77 68 61 74 20 77 | 6f 72 6b 73 20 66 6f 72 |w what w|orks for|
|000003e0| 20 6d 65 20 3a 2d 29 2e | 0a 0a 49 20 6d 61 69 6e | me :-).|..I main|
|000003f0| 74 61 69 6e 20 61 20 6c | 69 62 72 61 72 79 20 61 |tain a l|ibrary a|
|00000400| 6e 64 20 61 6c 6c 20 73 | 74 61 74 69 63 20 6d 65 |nd all s|tatic me|
|00000410| 6d 62 65 72 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |mber ini|tializat|
|00000420| 69 6f 6e 20 74 61 6b 65 | 73 20 70 6c 61 63 65 0a |ion take|s place.|
|00000430| 69 6e 20 61 20 66 69 6c | 65 20 6e 61 6d 65 64 20 |in a fil|e named |
|00000440| 65 63 5f 73 74 61 74 69 | 63 73 2e 43 2e 20 4f 6e |ec_stati|cs.C. On|
|00000450| 65 20 6c 69 6e 65 20 66 | 6f 72 20 65 78 61 6d 70 |e line f|or examp|
|00000460| 6c 65 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 20 74 68 |le looks| like th|
|00000470| 65 20 0a 66 6f 6c 6c 6f | 77 69 6e 67 3a 0a 0a 4c |e .follo|wing:..L|
|00000480| 69 73 74 3c 4d 4d 61 70 | 45 6e 74 72 79 3e 20 2a |ist<MMap|Entry> *|
|00000490| 4d 61 6c 6c 6f 63 5f 74 | 6d 70 3a 3a 6d 6d 61 70 |Malloc_t|mp::mmap|
|000004a0| 6c 69 73 74 20 3d 20 6e | 65 77 20 4c 69 73 74 3c |list = n|ew List<|
|000004b0| 4d 4d 61 70 45 6e 74 72 | 79 3e 3b 0a 0a 41 70 70 |MMapEntr|y>;..App|
|000004c0| 6c 69 65 64 20 74 6f 20 | 79 6f 75 72 20 63 61 73 |lied to |your cas|
|000004d0| 65 20 74 68 69 73 20 77 | 6f 75 6c 64 20 6c 6f 6f |e this w|ould loo|
|000004e0| 6b 20 6c 69 6b 65 3a 0a | 0a 58 3c 54 3e 20 58 3a |k like:.|.X<T> X:|
|000004f0| 3a 6d 69 6e 5f 62 75 66 | 66 5f 73 69 7a 65 20 3d |:min_buf|f_size =|
|00000500| 20 31 30 30 3b 0a 0a 4e | 6f 74 65 2c 20 74 68 61 | 100;..N|ote, tha|
|00000510| 74 20 69 6e 20 6d 79 20 | 63 61 73 65 20 65 76 65 |t in my |case eve|
|00000520| 6e 20 74 68 65 20 73 74 | 61 74 69 63 20 76 61 72 |n the st|atic var|
|00000530| 69 61 62 6c 65 20 74 68 | 61 74 20 69 73 20 69 6e |iable th|at is in|
|00000540| 69 74 69 61 6c 69 7a 65 | 64 20 0a 64 65 70 65 6e |itialize|d .depen|
|00000550| 64 73 20 6f 6e 20 74 68 | 65 20 74 65 6d 70 6c 61 |ds on th|e templa|
|00000560| 74 65 2e 0a 0a 49 20 75 | 73 65 20 43 2b 2b 20 34 |te...I u|se C++ 4|
|00000570| 2e 30 20 75 6e 64 65 72 | 20 49 52 49 58 20 35 2e |.0 under| IRIX 5.|
|00000580| 33 20 6f 6e 20 6d 79 20 | 49 6e 64 69 67 6f 2e 0a |3 on my |Indigo..|
|00000590| 0a 59 6f 75 20 63 61 6e | 20 72 65 61 64 20 6d 6f |.You can| read mo|
|000005a0| 72 65 20 61 62 6f 75 74 | 20 74 68 69 73 20 69 6e |re about| this in|
|000005b0| 20 74 68 65 20 41 52 4d | 2c 20 73 65 63 74 69 6f | the ARM|, sectio|
|000005c0| 6e 20 39 2e 34 2c 20 70 | 70 2e 20 31 37 39 2d 31 |n 9.4, p|p. 179-1|
|000005d0| 38 31 2e 0a 0a 47 72 65 | 65 74 69 6e 67 73 2c 0a |81...Gre|etings,.|
|000005e0| 0a 41 6e 64 72 65 61 73 | 0a 0a 2d 2d 20 0a 20 41 |.Andreas|..-- . A|
|000005f0| 6e 64 72 65 61 73 20 57 | 69 65 72 73 65 20 20 20 |ndreas W|ierse |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 20 | | | |
|00000610| 43 6f 6d 70 75 74 65 72 | 20 43 65 6e 74 65 72 20 |Computer| Center |
|00000620| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 53 74 |Universi|ty of St|
|00000630| 75 74 74 67 61 72 74 0a | 20 77 69 65 72 73 65 40 |uttgart.| wierse@|
|00000640| 72 75 73 2e 75 6e 69 2d | 73 74 75 74 74 67 61 72 |rus.uni-|stuttgar|
|00000650| 74 2e 64 65 20 20 20 7c | 20 20 41 6c 6c 6d 61 6e |t.de || Allman|
|00000660| 64 72 69 6e 67 20 33 30 | 2c 20 44 2d 37 30 35 35 |dring 30|, D-7055|
|00000670| 30 20 53 74 75 74 74 67 | 61 72 74 2c 20 47 65 72 |0 Stuttg|art, Ger|
|00000680| 6d 61 6e 79 0a 20 2b 34 | 39 20 37 31 31 2d 36 38 |many. +4|9 711-68|
|00000690| 35 35 37 39 36 20 28 46 | 41 58 3a 2d 36 38 32 33 |55796 (F|AX:-6823|
|000006a0| 35 37 29 20 7c 20 20 27 | 39 30 20 56 46 52 37 35 |57) | '|90 VFR75|
|000006b0| 30 46 20 28 72 65 64 2c | 20 6f 66 20 63 6f 75 72 |0F (red,| of cour|
|000006c0| 73 65 21 29 20 72 72 72 | 23 39 20 44 6f 44 23 53 |se!) rrr|#9 DoD#S|
|000006d0| 55 45 36 0a 20 68 74 74 | 70 3a 2f 2f 77 77 77 2e |UE6. htt|p://www.|
|000006e0| 75 6e 69 2d 73 74 75 74 | 74 67 61 72 74 2e 64 65 |uni-stut|tgart.de|
|000006f0| 2f 50 65 6f 70 6c 65 2f | 77 69 65 72 73 65 2e 68 |/People/|wierse.h|
|00000700| 74 6d 6c 0a | |tml. | |
+--------+-------------------------+-------------------------+--------+--------+